package com.xoa.dev.jinOuWorkFlowWebService.webservices;

public class IncomingServicePortTypeProxy implements IncomingServicePortType {
  private String _endpoint = null;
  private IncomingServicePortType incomingServicePortType = null;
  
  public IncomingServicePortTypeProxy() {
    _initIncomingServicePortTypeProxy();
  }
  
  public IncomingServicePortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initIncomingServicePortTypeProxy();
  }
  
  private void _initIncomingServicePortTypeProxy() {
    try {
      incomingServicePortType = (new IncomingServiceLocator()).getIncomingServiceHttpPort();
      if (incomingServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)incomingServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)incomingServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (incomingServicePortType != null)
      ((javax.xml.rpc.Stub)incomingServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public IncomingServicePortType getIncomingServicePortType() {
    if (incomingServicePortType == null)
      _initIncomingServicePortTypeProxy();
    return incomingServicePortType;
  }
  
  public String incoming(String in0, String in1) throws java.rmi.RemoteException{
    if (incomingServicePortType == null)
      _initIncomingServicePortTypeProxy();
    return incomingServicePortType.incoming(in0, in1);
  }
  
  
}